function submitForm(){
    $('#ff').form('submit',{
        onSubmit:function(){
        	var easyValidation = $(this).form('enableValidation').form('validate');
        	if(easyValidation){
        		 return validationForOther();
        	}else{
        		return false;
        	}
           
        }
    });
}
function clearForm(){
    $('#ff').form('clear');
}
$(function(){
    $('#ff').form({
        success:function(data){
        	var rs = $.parseJSON(data);
            if(rs.err_code==-1){
				slide_message(rs.err_msg);
				if(datagrid_num==2){
					$('#tt').treegrid('load');
				}else{
					$('#tt').datagrid('load'); 
				}
			}else{
				slide_message(rs.err_msg);
			}
        }
    });
});	
